<div class="page-wrapper">
    <header class="page-heading clearfix">
        <h1 class="heading-title pull-left">My Courses</h1>
        <div class="breadcrumbs pull-right">
            <ul class="breadcrumbs-list">
                <li class="breadcrumbs-label"><?php echo lang('you_are_here'); ?>:</li>
                <li><a href="#"><?php echo lang('home'); ?></a><i class="fa fa-angle-right"></i></li>
                <li class="current">My Courses</li>
            </ul>
        </div><!--//breadcrumbs-->
    </header> 
    <div class="page-content">
        <div class="row page-row">
            <div class="jobs-wrapper col-md-8 col-sm-7">   
            <?php if ($classrooms->result_count() == 0){ 
                echo '<h3 class="panel-title">You have currently no courses assigned</h3>';
            }
            ?>
            <?php foreach($classrooms as $classroom) { ?>
            <div class="panel panel-default page-row">
                <div class="panel-heading">
                    <h3 class="panel-title"><a href="<?php echo base_url() . "courses/get/" . $classroom->course_id ?>"><?php echo $classroom->course_title ?></a></h3>
                </div>
                <ul class="list-group">
                    <li class="list-group-item"><strong><?php echo lang('department'); ?>:</strong> <?php echo $classroom->course_category_name ?></li>
                    <li class="list-group-item"><strong><?php echo lang('classroom'); ?>:</strong> <?php echo $classroom->name ?></li>
                    <li class="list-group-item"><strong><?php echo lang('hours'); ?>:</strong> <?php echo $classroom->time ?></li>
                </ul>
                <div class="panel-footer">
                    <div class="row">
                        <ul class="list-inline col-md-8 col-sm-6 col-xs-6">
                            <li><a href="<?php echo base_url() . "courses/get/" . $classroom->course_id ?>"><?php echo lang('more_details'); ?></a></li>
                        </ul>
                    </div>
                </div>
            </div><!--//panel-->  
            <?php } ?>

        </div><!--//jobs-wrapper-->
        <aside class="page-sidebar  col-md-3 col-md-offset-1 col-sm-4 col-sm-offset-1">      
            <section class="widget">
                <h3 class="title"><?php echo lang('contact'); ?></h3>
                <p>Εάν για οποιοδήποτε λόγο έχετε κάποια απορία σχετικά με τις ώρες των μαθημάτων, καθώς επίσης και εαν θέλετε να αλλάξετε τμήμα, ώρα κλπ επικοινωνήστε μαζί μας άμεσα</p>
                <p class="tel"><i class="fa fa-phone"></i><?php echo lang('tel'); ?>: <?php echo $this->contactDetails->phone ?></p>
                <p class="email"><i class="fa fa-envelope"></i>Email: <a href="#"><?php echo $this->contactDetails->email ?></a></p>
            </section><!--//widget-->
        </aside>
        </div><!--//page-row-->
    </div><!--//page-content-->
</div>